package edu.kjxy.demo0409;

public class Demo07 {

	public static void main(String[] args) {
		String s1 = "三峡大学科技学院三峡职院三峡电院";
		
		String s2 = s1.replace('三', '四');
		System.out.println(s2);
		
		String s3 = s1.replace("三峡", "Three Gorges");
		System.out.println(s3);
		
		boolean flag = s1.contains("科技学院"); //包含
		System.out.println(flag);
		
		String ss = "    ";
		System.out.println(ss.isBlank());//不显示的空白符
		System.out.println(ss.isEmpty());//长度为0
		
		String sx = "好好学习";
		System.out.println(sx.repeat(10));
	}

}
